import {request} from '@/base/Request';
import {Inspect} from '@/base/model/Inspect';
import {Result} from '@/base/Result';
import qs from 'qs'

export function findInspectAll(params:{
    phones: String;
}): Promise<Result<Inspect[]>> {
    return request.getArray(Inspect, 'api/t100/findAllInspect',{params});
}

export function addInspect(params:{
    phones: string,
    name: string
}): Promise<Result<Inspect>> {
    return request.post(Inspect, `/api/t100/inspect?phones=${params.phones}&name=${params.name}`);
}


export function deleteId(id: number): Promise<Result<void>> {
    return request.delete(`/api/t100/inspect/${id}`);
}

